package com.isoft.c2team3service2.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

//会员信息表
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_person")
public class Person implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    @TableField("nick_name") // 映射数据库的nick_name字段
    private String nickName;
    private String birthdate;
    private String phonenumber;
    private String email;
    @TableField(fill = FieldFill.INSERT)
    private String isArtist;
    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private String background;

    private Integer memberStatus; // 0-非会员，1-已开通会员
    private LocalDateTime memberExpireTime; // 会员过期时间
    private String loginId;
}
